package com.six.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName acl_offshelf
 */
@TableName(value ="acl_offshelf")
public class Offshelf implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private String goodsid;

    /**
     * 店铺id
     */
        private  Integer shopid;

    /**
     * 下架人
     */
    private Integer empid;

    /**
     * 下架时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtModified;

    /**
     * 下架理由
     */
    private String remark;

    /**
     * 0显示 1不显示
     */
    private Integer ofstate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 商品id
     */
    public String getGoodsid() {
        return goodsid;
    }

    /**
     * 商品id
     */
    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    /**
     * 店铺id
     */
    public Integer getShopid() {
        return shopid;
    }

    /**
     * 店铺id
     */
    public void setShopid(Integer shopid) {
        this.shopid = shopid;
    }

    /**
     * 下架人
     */
    public Integer getEmpid() {
        return empid;
    }

    /**
     * 下架人
     */
    public void setEmpid(Integer empid) {
        this.empid = empid;
    }

    /**
     * 下架时间
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * 下架时间
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * 下架理由
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 下架理由
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 0显示 1不显示
     */
    public Integer getOfstate() {
        return ofstate;
    }

    /**
     * 0显示 1不显示
     */
    public void setOfstate(Integer ofstate) {
        this.ofstate = ofstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Offshelf other = (Offshelf) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGoodsid() == null ? other.getGoodsid() == null : this.getGoodsid().equals(other.getGoodsid()))
            && (this.getShopid() == null ? other.getShopid() == null : this.getShopid().equals(other.getShopid()))
            && (this.getEmpid() == null ? other.getEmpid() == null : this.getEmpid().equals(other.getEmpid()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getOfstate() == null ? other.getOfstate() == null : this.getOfstate().equals(other.getOfstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGoodsid() == null) ? 0 : getGoodsid().hashCode());
        result = prime * result + ((getShopid() == null) ? 0 : getShopid().hashCode());
        result = prime * result + ((getEmpid() == null) ? 0 : getEmpid().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getOfstate() == null) ? 0 : getOfstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", goodsid=").append(goodsid);
        sb.append(", shopid=").append(shopid);
        sb.append(", empid=").append(empid);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", remark=").append(remark);
        sb.append(", ofstate=").append(ofstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}